package zlatan_demo

object ClassDemo05 {

  class Customer{
    var name:String= _
    var sex:String=_

    def printHello(msg:String):Unit=println(msg)
  }


  def main(args: Array[String]): Unit = {
    val p=new Customer()

    p.name="张三"
    p.sex ="男"

    println(p.name,p.sex)
    p.printHello("hello，Scala")
  }
}
